<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>青春花语--用户注册</title>
    <link rel="stylesheet" href="../CSS/regiser.css">
    <link rel="stylesheet" href="../CSS/public.css">
    <script src="../js/regiser.js"></script>
</head>

<body>
    <!-- 头部导航 -->
    <div class="top-nav">
        <ul>
            <li><a href="../index.html"><span>|</span>青春花语首页<span>|</span></a></li>
            <li><a href="../HTML/shopping_mall.html"><span>|</span>商城<span>|</span></a>
            </li>
            <li><a href="../HTML/collect.html"><span>|</span>商品收藏<span>|</span></a>
            </li>
            <li><a href="../HTML/contact.html"><span>|</span>联系客服<span>|</span></a>
            </li>
            <li><a href="../HTML/login.html"><span>|</span>欢迎登录青春花语<span>|</span></a>
            </li>
            <li><a href="../HTML/register.html"><span>|</span>免费注册<span>|</span></a>
            </li>
            <li><a href="../HTML/person.html"><span>|</span>个人资料<span>|</span></a>
            </li>
            <li><a href="../HTML/my_order.html"><span>|</span>我的订单<span>|</span></a>
            </li>
        </ul>
    </div>
    <div class="registration-container">
        <h2>新用户注册</h2>
        <form id="registrationForm" action="/submit-registration" method="post">
            <label for="phone">手机号码:</label><br>
            <input type="text" id="phone" name="phone" required onfocus="clearError('phoneError')"
                onblur="validateInput('phone', 'phoneError', /^[1][3-9]\d{9}$/)"><br>
            <span class="error" id="phoneError"
                style="color: red; font-size: 12px; display: none;">请输入正确的手机号码</span><br>
            <label for="email">邮箱地址:</label><br>
            <input type="email" id="email" name="email" required onfocus="clearError('emailError')"
                onblur="validateInput('email', 'emailError', /^[^\s@]+@[^\s@]+\.[^\s@]+$/)"><br>
            <span class="error" id="emailError"
                style="color: red; font-size: 12px; display: none;">请输入正确的邮箱地址</span><br>
            <label for="password">密码:</label><br>
            <input type="password" id="password" name="password" required><br>
            <input type="submit" value="注册">
        </form>
        <div class="form-footer">
            <a href="../HTML/login.html" class="login-link">已有账号？登录</a>
        </div>
    </div>
</body>

</html>